//文档占比
let documentRateChart={
  // title: {
  //   text: '文档占比',
  //   subtext: '大分类',
  //   left: 'center'
  // },
  tooltip: {
    trigger: 'item'
  },
  legend: {
    orient: 'horizontal',
    left: 'left'
  },
  series: [
    {
      // name: 'Access From',
      type: 'pie',
      radius: '50%',
      data: [],
      itemStyle:{
        borderWidth:1,
        borderColor:'#fff',
      },
      label:{
        show:true,
        fontSize:18,
        formatter: '{b}：{c}',
        color: 'inherit',
      },
      emphasis: {
        itemStyle: {
          shadowBlur: 10,
          shadowOffsetX: 0,
          shadowColor: 'rgba(0, 0, 0, 0.5)'
        }
      }
    }
  ]
};

//文档下载量
let downloadCountChart = {
  title: {
    // text: '文档下载量'
  },
  tooltip: {
    trigger: 'axis',
    axisPointer: {
      type: 'shadow'
    }
  },
  legend: {},
  grid: {
    left: '3%',
    right: '4%',
    bottom: '3%',
    containLabel: true
  },
  xAxis: {
    type: 'value',
    boundaryGap: [0, 0.01]
  },
  yAxis: {
    type: 'category',
    data: []
  },
  series: [
    {
      name: '下载量',
      type: 'bar',
      data: [],
      label:{
        normal:{
          show:true,
          position:'right',
        },
      },
    }
  ]
};

//用户上传量
let uploadRankChart = {
  title: {
    // text: '用户上传排行'
  },
  tooltip: {
    trigger: 'axis',
    axisPointer: {
      type: 'shadow'
    }
  },
  legend: {},
  grid: {
    left: '3%',
    right: '4%',
    bottom: '3%',
    containLabel: true
  },
  xAxis: {
    type: 'value',
    boundaryGap: [0, 0.01]
  },
  yAxis: {
    type: 'category',
    data: []
  },
  series: [
    {
      name: '上传量',
      type: 'bar',
      data: [],
      label:{
        normal:{
          show:true,
          position:'right',
        },
      },
    }
  ]
};

export{
  downloadCountChart,uploadRankChart,documentRateChart,
}